import {request} from './request'

//登录
export function register(data) {
    return request({
        url: '/api/auth/register',
        method: 'post',
        data: data
    })
}

//注册
export function login(data) {
    return request({
        url:'/api/auth/login',
        method:'post',
        data: data
    })
}
//退出
export function logout(data) {
    return request({
        url:'/api/auth/logout',
        method:'post',
    })
}


